package main

import (
	"fmt"
	"encoding/json"
)

func main(){
	c:=map[string]map[string]map[string]interface{}{}

	d:=map[string]interface{}{}
	d["a"]="b"

	e:=map[string]map[string]interface{}{}
	e["c"] = d

	c["d"] = e
	fmt.Println("c=",c)


	a:=map[string]map[string]interface{}{}
	fmt.Printf("%T\n",a)
	b:=map[string]interface{}{}
	b["menu_item"]=1
	b["menu_name"]="神马"
	b["menu_url"]="http://www.baidu.com"
	a["organization"]=b
	fmt.Println(a)

	jsonStr,_:=json.Marshal(a)
	str:=fmt.Sprintf("%s",jsonStr)
	fmt.Println(str)
	fmt.Println(string(jsonStr))
	return


	var arr [2][3]int
	arr[0][0] = 1
	arr[1][2] = 2
	fmt.Println(arr)

	var arr1 [2][3]int = [2][3]int{{1,2},{11}}
	fmt.Println(arr1)
}
